const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electronAPI', {
  selectExe: () => ipcRenderer.invoke('select-exe'),
  encryptAndPackage: (filePath, authCode) => ipcRenderer.invoke('encrypt-and-package', filePath, authCode),
  onPackagingProgress: (callback) => ipcRenderer.on('packaging-progress', (event, progress) => callback(progress))
});
